package com.lagou.task03;

/**
 * 手机卡类
 */
public class Phone {
    private String type;
    private long id;
    private String name;
    private int password;
    private int accunt;
    private double time;
    private double flow;
    public Phone(){

    }

    public Phone(String type, long id, String name, int password, int accunt, double time, double flow) {
        this.type = type;
        this.id = id;
        this.name = name;
        this.password = password;
        this.accunt = accunt;
        this.time = time;
        this.flow = flow;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPassword() {
        return password;
    }

    public void setPassword(int password) {
        this.password = password;
    }

    public int getAccunt() {
        return accunt;
    }

    public void setAccunt(int accunt) {
        this.accunt = accunt;
    }

    public double getTime() {
        return time;
    }

    public void setTime(double time) {
        this.time = time;
    }

    public double getFlow() {
        return flow;
    }

    public void setFlow(double flow) {
        this.flow = flow;
    }
    public void show(){
        System.out.println("卡号:"+getId()+"+用户名:"+getName()+"+当前余额:"+getAccunt());
    }

}
